<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<h2>Consultation de la CheckList</h2>

<s:iterator value="checkList.treeReponses.entrySet()">
	<div class="questionlist">
		<h3><s:property value="key.nom" /></h3>
		<ul>
			<s:iterator var="reponse" value="value">
			<li>
			<s:if test="#reponse.valid">
				<s:property value="#reponse.question.question" />&nbsp;:&nbsp;<s:if test="#reponse.value">Oui</s:if><s:else>Non</s:else>
			</s:if>
			<s:else>
				<span class="<s:property value="#reponse.question.alerte.niveau" />"><s:property value="#reponse.question.question" />&nbsp;:&nbsp;
				<s:if test="#reponse.value">Oui</s:if><s:else>Non</s:else>
				<br />
				<s:property value="#reponse.question.alerte.niveau" />&nbsp;:&nbsp;<s:property value="#reponse.question.alerte.message" /></span>
			</s:else>
			</li>
			</s:iterator>
		</ul>
	</div>
</s:iterator>
<s:url id="consulterLivraisonUrl" action="consulterLivraison">
	<s:param name="id" value="checkList.livraison.id" />
</s:url>
<s:a href="%{consulterLivraisonUrl}">Retour à la livraison</s:a>


